<template>
  <el-date-picker
    v-model="obj.value"
    :type="obj.type || 'datetimerange'"
    range-separator="至"
    start-placeholder="开始时间"
    end-placeholder="结束时间"
  >
  </el-date-picker>
</template>

<script lang="ts">
export default {
  name: 'datepickerView.'
}
</script>

<script lang="ts" setup>
import { toRefs, defineProps } from 'vue'
import { type Basis } from '@/types/element'
const props = defineProps<{
  obj: Basis
}>()
const { obj } = toRefs(props)
</script>

<style scoped></style>
